package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"varchar(30)"`
	Password string `gorm:"varchar(32)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"varchar(30)"`
}
type RoleUser struct {
	Uid int `gorm:"int"`
	Rid int `gorm:"int"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"varchar(30)"`
}
type NodeRole struct {
	Rid int `gorm:"int"`
	Nid int `gorm:"int"`
}
type Good struct {
	gorm.Model
	Name    string `gorm:"varchar(30)"`
	Content string `gorm:"varchar(30)"`
}
type GoodOrder struct {
	gorm.Model
	OrderCode  string `gorm:"varchar(30)"`
	OrderPrice int    `gorm:"int"`
	Gid        int    `gorm:"int"`
}
type GoodOrderList struct {
	OrderId    int
	Name       string `gorm:"varchar(30)"`
	Content    string `gorm:"varchar(30)"`
	OrderCode  string `gorm:"varchar(30)"`
	OrderPrice int    `gorm:"int"`
}
